<template>
  <div class="zhengtirendu5 base-background-img">
    <div class="yin" @click="playFun(yin)">
        <img src="~@/assets/youxiaoxianjie/zhengtirendu/5/yin.png">
    </div>
    <div class="yun" @click="playFun(yun)">
        <img src="~@/assets/youxiaoxianjie/zhengtirendu/5/yun.png">
    </div>
    <div class="ying" @click="playFun(ying)">
        <img src="~@/assets/youxiaoxianjie/zhengtirendu/5/ying.png">
    </div>
    <c-pdf @closePdf="closePdf" v-if="isshowpdf" :info="info" :infourl="pdfurl"></c-pdf>
  </div>
</template>

<script>
  export default {
    name: 'zhengtirendu5',
    data () {
      return {
        isshowpdf: false,
        infourl: '',
        info: '',
        yin: {
          url: 'static/youxiao/pdf/zhengtirendu/yin.pdf',
          data: []
        },
        yun: {
          url: 'static/youxiao/pdf/zhengtirendu/yun.pdf',
          data: []
        },
        ying: {
          url: 'static/youxiao/pdf/zhengtirendu/ying.pdf',
          data: []
        }
      }
    },
    methods: {
      playFun: function (item) {
        console.log(item)
        this.isshowpdf = true
        this.pdfurl = item.url
        this.info = item.data
      },
      closePdf: function () {
        this.isshowpdf = false
      }
    }
  }
</script>

<style scoped>
.zhengtirendu5 {
  background: url(~@/assets/youxiaoxianjie/zhengtirendu/5/bg.png);
}
.zhengtirendu5 > div {
  position: absolute; 
}
.yin {
  top: 268px;
  left: 195px;
}
.yun {
  top: 312px;
  left: 490px;
}
.ying {
  top: 270px;
  left: 782px;
}
</style>
